package com.fbs.job.admin.mapper;


import com.fbs.job.admin.core.entity.FbsJobRegistry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* 描述： Mapper
* @author wwd
* @date 2024-01-31 10:33:48
*/

@Mapper
public interface FbsJobRegistryMapper  {
  int registryUpdate(@Param("registryActuator") String registryActuator,
                     @Param("registryKey") String registryKey,
                     @Param("registryValue")String registryValue ,
                     @Param("updateTime") Date updateTime);

    int registrySave(@Param("registryActuator") String registryActuator,
                       @Param("registryKey") String registryKey,
                       @Param("registryValue")String registryValue ,
                       @Param("updateTime") Date updateTime);
    int registryDelete(@Param("registryActuator") String registryActuator,
                     @Param("registryKey") String registryKey,
                     @Param("registryValue")String registryValue);

    List<Integer> findDead(@Param("timeout") int timeout, @Param("nowTime") Date nowTime);

   int removeDead(@Param("ids") List<Integer> ids);

   List<FbsJobRegistry> findAll(@Param("timeout") int timeout,
                                      @Param("nowTime") Date nowTime);

    int removeDeadRegister(@Param("timeout") int timeout, @Param("nowTime") Date nowTime);
}
